<!DOCTYPE html>
<html lang="en">
    <head>
       <?php require_once('meta.php') ?>
    </head>

    <body>
        <!-- 头部 -->
        <?php require_once('header.php') ?>

        <div class="sidebar-nav">
            <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>控制面板</a>
            <ul id="dashboard-menu" class="nav nav-list collapse in">
                <li><a href="index.php">首页</a></li>
                <li ><a href="list.php">文章管理</a></li>
            </ul>
        </div>

        <div class="content">
            <div class="header">
                <h1 class="page-title">文章列表</h1>
            </div>
            <ul class="breadcrumb">
                <li><a href="index.php">Home</a> <span class="divider">/</span></li>
                <li class="active">Index</li>
            </ul>

            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="btn-toolbar">
                        <button class="btn btn-primary" onClick="location='add.php'"><i class="icon-plus"></i>发布文章</button>
                    </div>
                    <div class="well">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>文章标题</th>
                                <th>发布时间</th>
                                <th style="width: 26px;"></th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>1</td>
                                <td>必须使用HTML5文档类型 Bootstrap使用的某些HTML元素</td>
                                <td>2013-06-21</td>
                                <td>
                                    <a href="add.php"><i class="icon-pencil"></i></a>
                                    <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>必须使用HTML5文档类型 Bootstrap使用的某些HTML元素</td>
                                <td>2013-06-21</td>
                                <td>
                                    <a href="add.php"><i class="icon-pencil"></i></a>
                                    <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>必须使用HTML5文档类型 Bootstrap使用的某些HTML元素</td>
                                <td>2013-06-21</td>
                                <td>
                                    <a href="add.php"><i class="icon-pencil"></i></a>
                                    <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>必须使用HTML5文档类型 Bootstrap使用的某些HTML元素</td>
                                <td>2013-06-21</td>
                                <td>
                                    <a href="add.php"><i class="icon-pencil"></i></a>
                                    <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>必须使用HTML5文档类型 Bootstrap使用的某些HTML元素</td>
                                <td>2013-06-21</td>
                                <td>
                                    <a href="add.php"><i class="icon-pencil"></i></a>
                                    <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>必须使用HTML5文档类型 Bootstrap使用的某些HTML元素</td>
                                <td>2013-06-21</td>
                                <td>
                                    <a href="add.php"><i class="icon-pencil"></i></a>
                                    <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="pagination">
                        <ul>
                            <li><a href="#">Prev</a></li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">Next</a></li>
                        </ul>
                    </div>

                    <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <h3 id="myModalLabel">Delete Confirmation</h3>
                        </div>
                        <div class="modal-body">
                            <p class="error-text"><i class="icon-warning-sign modal-icon"></i>Are you sure you want to delete the user?</p>
                        </div>
                        <div class="modal-footer">
                            <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
                            <button class="btn btn-danger" data-dismiss="modal">Delete</button>
                        </div>
                    </div>

                    <footer>
                        <hr>
                        <p>&copy; 2017 <a href="#" target="_blank">copyright</a></p>
                    </footer> 
                </div>
            </div>
        </div>
    </body>
</html>